//
// Copyright (c) 2024 BPer
//
#ifndef SRC_BPERWEBRTC_BPERSSRCINFO_H_
#define SRC_BPERWEBRTC_BPERSSRCINFO_H_
#include <bperutil/BPerType.h>
#include <bpersdp/BPerSdpType.h>

bPer_vector_declare(BPersdpint)


typedef struct{
	BPersdpintVector groups;
	char semantic[64];
}BPerSSRCGroup;

typedef struct{
    uint32_t ssrc;
    char cname[64];
    char msid[64];
    char msid_tracker[64];
    char mslabel[64];
    char label[64];
}BPerSSRCInfo;


bPer_vector_declare(BPerSSRCGroup)


bPer_vector_declare(BPerSSRCInfo)


int32_t bPer_encode_ssrcinfo(BPerSSRCInfo* info,BPerBuffer* os);
int32_t bPer_encode_ssrcgroup(BPerSSRCGroup* group,BPerBuffer* os);

#endif /* SRC_BPERWEBRTC_BPERSSRCINFO_H_ */
